<?php
namespace Common\Exception;
 /*
 自定义\Common\Exception\Exception类
 扩展\Exception可以传递任意数据类型的异常
 */
class Exception extends \Exception{
	protected $error;
	protected $eCode=0;
	function __construct($error){
		if(is_array($error)){
			$this->eCode=1;
		}
		$this->error=$error;
	}
	
	public function getError(){
		return $this->error;
	}
}